﻿// -------------------------------------------------------------------------
//    @FileName         :    NFSessionUtil.h
//    @Author           :    gaoyi
//    @Date             :    24-8-23
//    @Email            :    445267987@qq.com
//    @Module           :    NFSessionUtil
//
// -------------------------------------------------------------------------

#pragma once

#include "NFComm/NFObjCommon/NFObject.h"

#define MAX_TICK_SESSION_NUM_PER_Tick 100

class NFSession;

class NFSessionUtil
{
public:
    static NFSession *GetSessionObj(int iGlobalID);

    static int DestorySessionObj(NFSession *pSession, int iDelayMS);

    static int Tick();

    static int IsRegisterLimit(NFSession *pSession, bool& bCanRegister);
};
